package com.example.administrator.k3xiangmu;

import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;

public class Main3Activity extends AppCompatActivity {
  /*  public  static  String ip = "205.168.1.112:1433";
    public  static String userName = "sa";

    public  static String userPwd = "123";
    public  static String userDB = "AIS20161026095136";*/

    public  static  String ip = "g16517272w.imwork.net:10491";
    public  static String userName = "sa";

    public  static String userPwd = "sa@kingdee123";
    public  static String userDB = "AIS20161026095136";
    Button bt1;
    Button bt2;
    Button bt3;
    Button bt4,bt5,bt6,bt7,bt8;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.content_main3);
        bt1=(Button)findViewById(R.id.bta);
       bt2=(Button)findViewById(R.id.btb);
        bt3=(Button)findViewById(R.id.btc);
        bt4=(Button)findViewById(R.id.btd);
        bt5=(Button)findViewById(R.id.btdb);
        bt6=(Button)findViewById(R.id.bthh);
        bt7=(Button)findViewById(R.id.btpd);
        bt8=(Button)findViewById(R.id.ckzl);
      setListen();
    }
    private void setListen(){
        bt8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,CKZLActivity.class);
                startActivity(i);
            }
        });
        bt7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,PDActivity.class);
                startActivity(i);
            }
        });
        bt6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,HHActivity.class);
                startActivity(i);
            }
        });
        bt5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,DiaoboActivity.class);
                startActivity(i);
            }
        });
        bt4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,Lx2Activity.class);
                startActivity(i);
            }
        });
        bt3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,RukuActivity.class);
                startActivity(i);
            }
        });
        bt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,Yidonkaidan2Activity.class);
                startActivity(i);
            }
        });
        bt2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i=new Intent(Main3Activity.this,SaomiaoActivity.class);
                startActivity(i);
            }
        });
    }
}
